import {logTypeArray, operationTypeArray} from "../common";
import {tableOptBtnConfig} from "../table";

export default {
  "tableId": "operationLog",
  "name": "操作日志",
  "columns": [
    {
      label: '日志类型',
      width: 240,
      children: [
        {
          key: 'operationLogSchemas',
        },
      ]
    },
    {
      label: '操作类型',
      width: 120,
      children: [
        {
          key: 'operationLogType',
        },
      ]
    },
    {
      label: '具体操作',
      width: 300,
      children: [
        {
          tooltip: true,
          key: 'specificOperation',
        }
      ],
    },
    {
      label: '更新数据信息',
      width: 100, "operation": true,
      children: [

        {
          "button": true,
          type: tableOptBtnConfig.detail.type,
        },
      ],
    },
    {
      label: '更新时间',
      width: 100,
      children: [
        {
          updatedDate: true
        }
      ],
    },
    {
      label: '操作人',
      width: 240,
      children: [
        {
          key: 'lastUpdatedByName',
        }
      ],
    },
  ],
  "filters": [
    {
      "fieldType": "string",
      key: 'operationLogSchemas',
      label: '日志类型',
      "options": logTypeArray
    },
    {
      "fieldType": "string",
      key: 'operationLogType',
      label: '操作类型',
      "options": operationTypeArray
    },
    {
      "fieldType": "input",
      key: 'lastUpdatedByName',
      label: '操作人',
    },
    {
      "fieldType": "input",
      key: 'specificOperation',
      label: '具体操作',
    },
  ]
}
